package net.seehope.foodie.service.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

//@Service
public class ScheduledTask {
	
	private static final Logger log = LoggerFactory.getLogger(ScheduledTask.class);
	
	//cron表达式
	@Scheduled(cron = "1-30 * * * * ?  ")
	public void sayhello() {
		log.info("hello world");
	}

}
